import Vue from 'vue'
import { VueMessages } from './vue-messages'
import { install } from '@/i18n/vue-messages'
import { Locales } from '@/messages/locale'

const zh = require('./zh').default
const en = require('./en').default

Vue.use(install)

const i18n = new VueMessages(Locales.forName('zh'), {
  zh: zh,
  en: en
})

export default i18n
